package org.budo.template.resource;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import org.budo.template.TemplateResource;

/**
 * @author lmw
 */
public class StringTemplateResource implements TemplateResource {
    private String name;

    public StringTemplateResource(String name) {
        this.name = name;
    }

    @Override
    public InputStream getInputStream() {
        return new ByteArrayInputStream(name.getBytes());
    }
}